<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>Moderation page</title>
   
   
<script src="jquery.js"></script>
 <script src="jquery-ui.js"></script>

	<link rel="stylesheet" type="text/css" href="style.css"/>
	<link rel="stylesheet"  type="text/css" href="app1.css"/>
 <link rel="stylesheet" type="text/css" href="jquery-ui.css"/>
 <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
 
 <!--  <style media="screen" type="text/css">
			.table {
			  max-width: 100%;
			  background-color: transparent;
			  border-collapse: collapse;
			  border-spacing: 0;
			}
			
			.table {
			  width: 100%;
			  margin-bottom: 20px;
			}
			
			.table th,
			.table td {
			  padding: 8px;
			  line-height: 20px;
			  text-align: left;
			  vertical-align: top;
			  border-top: 1px solid #dddddd;
			}
			
			.table th {
			  font-weight: bold;
			}
			
			.table thead th {
			  vertical-align: bottom;
			}
			
			.table caption + thead tr:first-child th,
			.table caption + thead tr:first-child td,
			.table colgroup + thead tr:first-child th,
			.table colgroup + thead tr:first-child td,
			.table thead:first-child tr:first-child th,
			.table thead:first-child tr:first-child td {
			  border-top: 0;
			}
			
			.table tbody + tbody {
			  border-top: 2px solid #dddddd;
			}
			
			.table .table {
			  background-color: #ffffff;
			}
			
			.table-hover tbody tr:hover > td,
			.table-hover tbody tr:hover > th {
			  background-color: #f5f5f5;
			}
			.table-hover tbody tr.success:hover > td {
			  background-color: #d0e9c6;
			}
			.table-hover tbody tr.error:hover > td {
			  background-color: #ebcccc;
			}
			.table-hover tbody tr.warning:hover > td {
			  background-color: #E6F3FF;
			}
			.table-hover tbody tr.info:hover > td {
			  background-color: #c4e3f3;
			}

	
	  </style>   -->

	 <!--<link rel="stylesheet" href="style.css"/>
	<link rel="stylesheet" type="text/css" href="app1.css"/>
 <link rel="stylesheet" type="text/css" href="jquery-ui.css"/> -->
    <script type="text/javascript">
       
      
      
      $(document).ready(function() {
    	  $("#eccsFormNFFEChecker").show();
    	  $("#accordion, #accordion1").accordion({
	    	   collapsible: true,
	    	   heightStyle: "content"
   	      });
    	  
    	  var sid = '${sid}';
    	  var customerFields = [ "Name of EntityCustomer", "TIN","Country of Issuance", "Country of Incorporation","LEI","Aggregate Balance Expected","Investment Income as Ratio of Gross Income",
     	                     	"Assets Quarterly Investment Income", "Incorporation Date", "Bankruptcy Filing Date", "US Owners Share Distribution", "US Owners Share Value in Dollars",
     	                    	"Electronic Account Number", "Passive Income of EAG","Gross Income of EAG", "Total Assests Entity", "Total Assests EAG", "Chapter 4 Status", "Status",
     	                    	"Fatca Status", "Audit Log", "More Info", "Is Info Missing","Is DocMissing",  "Created By", "Updated By", "Creation Date", "Modification Date"];
     	  $.get( "users/findCustomerById", {id: sid},function( data ) {	
     		  var i=0;
     		  $.each(data, function(key, val) {
     			  var bvalue = key!='id' && key!='customerDocuments' && key!='businessNature' && key!='stocksDistribution' && key!='regulators' && key!='restrictedDistributor'
     				  && key!='market' && key!='sourceIncome' && key!='eagPassiveIncome' && key!='memberStatus' && key!='locations' && key!='contact';
     		        if(bvalue){
     		        	if(val==null) val="";
     		            if(key=='chapter4status')
       		            $('#clientInfo').append('<tr class="info" width="100%"><td>'+ customerFields[i] + ' : </td><td><b>' + val.split("_")[1] + '</b></td></tr>');
       		        	else $('#clientInfo').append('<tr class="info" width="100%"><td>'+ customerFields[i] + ' : </td><td><b>' + val + '</b></td></tr>');
     		            i++;
     		        }
     		    });
     		 
     		 
     	  });
    	  
    	  
     	 $('#businessNatureDialog').dialog({autoOpen:false});
     	  $("#businessNatureDialogLink").click(function(){
  			   $('#businessNatureDialog').dialog('open');
  			   $('#businessNatureDialog').dialog({
  	    	        modal: true,	    	              
  	    	        height: 300,
  	    	        width: 665,
  	    	        title: 'Business Nature Page'
  	    	    });
  	      });
     	  $.get("customer/getAllBusinessNature",{id:sid},function(data) {
  				if(data.length>0)
  				$.each(data,function(i, item) {
  					$("#myBodyBN").append("<tr  class='warning'><td>"+ item.id+ "</td><td>"+item.businessActivity+"</td><td>"+item.entityName+"</td><td>"+item.industryClass+"</td></tr>");
  				});
  				else
  					$("#myBodyBN").append("<tr  class='warning'><td colspan='4'><center><b>No data found yet.</b></center></td></tr>");
  		  });
     	  
     	  
     	  $('#eagMemberStatusDialog').dialog({autoOpen:false});
     	  $("#eagMemberStatusLink").click(function(){
     		   $('#eagMemberStatusDialog').dialog('open');
  			   $('#eagMemberStatusDialog').dialog({
  	    	        modal: true,
  	    	        height: 300,
  	    	        width: 665,
  	    	        title: 'EAG Member Status Page'
  	    	    });
  	      });
     	  $.get("customer/getAllEAGMemberStatus",{id:sid},function(data) {
     		  if(data.length>0)
  				$.each(data,function(i, item) {
  					$("#myBodyMS").append("<tr  class='warning'><td>"+ item.id+ "</td><td>"+item.memberName+"</td><td>"+item.status+"</td></tr>");
  				});
     		  else
  					$("#myBodyMS").append("<tr  class='warning'><td colspan='4'><center><b>No data found yet.</b></center></td></tr>");
  		  });
    	  
     	  
     	  $('#eagPassiveIncomeDialog').dialog({autoOpen:false});
    	      $("#eagPassiveIncomeLink").click(function(){
    	    	   $('#eagPassiveIncomeDialog').dialog('open');
  			   $('#eagPassiveIncomeDialog').dialog({
  	    	        modal: true,
  	    	        height: 300,
  	    	        width: 665,
  	    	        title: 'EAG Passive Income Page'
  	    	    });
  	      });
    	      
    	      $.get("customer/getAllEAGPassiveIncome",{id:sid},function(data) {
  	   	     if(data.length>0)
  				$.each(data,function(i, item) {
  					$("#myBodyPI").append("<tr  class='warning'><td>"+ item.id+ "</td><td>"+item.sourceName+"</td><td>"+item.percentage+"</td></tr>");
  				});
  	   	     else
  					$("#myBodyPI").append("<tr  class='warning'><td colspan='4'><center><b>No data found yet.</b></center></td></tr>");
  			
  		  });
    	      
    	      $('#exchangeMarketDialog').dialog({autoOpen:false});
    	      $("#exchangeMarketLink").click(function(){
    	    	   $('#exchangeMarketDialog').dialog('open');
  			   $('#exchangeMarketDialog').dialog({
  	    	        modal: true,
  	    	        height: 300,
  	    	        width: 665,
  	    	        title: 'Exchange Market Page'
  	    	    });
           });
    	      
    	      $.get("customer/getAllExchangeMarket",{id:sid},function(data) {
  	   	     if(data.length>0)
  				$.each(data,function(i, item) {
  					$("#myBodyEM").append("<tr  class='warning'><td>"+ item.id+ "</td><td>"+item.marketName+"</td><td>"+item.ticket+"</td></tr>");
  				});
  	   	     else
  					$("#myBodyEM").append("<tr  class='warning'><td colspan='4'><center><b>No data found yet.</b></center></td></tr>");
  			
  		  });
   	  
    	      
    	   	   $('#locationsDialog').dialog({autoOpen:false});
    		      $("#locationsLink").click(function(){
    		    	   $('#locationsDialog').dialog('open');
    				   $('#locationsDialog').dialog({
    		    	        modal: true,
    		    	        height: 300,
    		    	        width: 665,
    		    	        title: 'Locations Page'
    		    	    });
    	       });
    		      
    		      $.get("customer/getAllLocations",{id:sid},function(data) {
    		   	     if(data.length>0)
    					$.each(data,function(i, item) {
    						$("#myBodyL").append("<tr  class='warning'><td>"+ item.id+ "</td><td>"+item.city+"</td><td>"+item.ticket+"</td></tr>");
    					});
    		   	     else
    						$("#myBodyL").append("<tr  class='warning'><td colspan='4'><center><b>No data found yet.</b></center></td></tr>");
    				
    			  });
    		      
    		      
    		      $('#regulatorsDialog').dialog({autoOpen:false});
    	   	      $("#regulatorsLink").click(function(){
    	   	    	   $('#regulatorsDialog').dialog('open');
    				   $('#regulatorsDialog').dialog({
    		    	        modal: true,
    		    	        height: 300,
    		    	        width: 665,
    		    	        title: 'Regulators Page'
    		    	    });
    	          });
    	   	      
    	   	      $.get("customer/getAllRegulators",{id:sid},function(data) {
    		   	     if(data.length>0)
    					$.each(data,function(i, item) {
    						$("#myBodyR").append("<tr  class='warning'><td>"+ item.id+ "</td><td>"+item.regulatorName+"</td><td>"+item.country+"</td></tr>");
    					});
    		   	     else
    						$("#myBodyR").append("<tr  class='warning'><td colspan='4'><center><b>No data found yet.</b></center></td></tr>");
    				
    			  });
     	  
    	  
    	  $.get( "users/findDocumentByCustId", {id: sid},function( data ) {	
    		  $('#docInfo').append('<span class="label label-info" style="font-size:12px"> Documents Uploaded : </span>');
    		  if(data.length==0) $('#docInfoTbl').append('<tr class="info"><td colspan="2"><b>No document attached.</b></td></tr>');
    		  else
    		  $.each(data, function(i,item) {
    			  var s=item.filePath;
    			  $('#docInfoTbl').append('<tr class="info"><td>'+item.doc.name+' : </td><td><a href="downloadFileStatus?filePath='+s+'&fileName='+item.fileName+'">' + item.fileName + '</a></td></tr>');
    		  });
    		
    	 });
    	  
    	  
    		  var cust = '${sid}';
    		  $.get( "users/findCustomerById", {id: cust},function( data ) {
    			  $('#nffeStatus').html("<span class='label label-info'>"+data.fatcaStatus+"</span>");
    			  $('#ncsSpe').html("<span class='label label-info'>"+data.fatcaStatus+"</span>");
    		  });
    		  $.get( "getResponseNFFE",{id:cust},function( data ) {	
    			  console.log("------>"+data);
    			  //$('#snq').append('<table>');
    			  $.each(data, function(i, item) {
    				  var ansId= "ansinitnId"+i;
    				 // $('#nffeFormd').append('<tr><td>'+item.question.name+'</td>');
    				  if(i==0){
    					  if(item.answer == "Y")
            				  $('#nffeFormd').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>Yes</b></td></tr>');
    					  if(item.answer == "D")
            				  $('#nffeFormd').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>Don'+"'"+'t Know</b></td></tr>');
    					  if(item.answer == "N"){
            					  var x;
            					  if(item.comment != "") x = item.comment.split(":")[1].trim(); 
            					  else x="";
            					  $('#nffeFormd').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>No</b>&nbsp;&nbsp;<b>Explanation : '+x+'</b></td></tr>'); 
            				  }
            					  	  
        				  
    				  }else{
    					  if(item.answer == "Y")
        				  $('#nffeFormd').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>Yes</b></td></tr>');
    					  if(item.answer == "N")
        					  $('#nffeFormd').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>No</b></td></tr>');	  
    					  if(item.answer == "D")
        					  $('#nffeFormd').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>Don'+"'"+'t Know</b></td></tr>');	
    				  }
    				  });
    			  //$('#snq').append('</table>');
    		  });
    		  $.get( "getResponseSpecNFFE",{id:cust},function( data ) {	
    			 // $('#snq').append('<table>');
    			  $.each(data, function(i, item) {
    				  var ansId= "ansspecnId"+i;
    				  // $('#snq').append('<div class="control-group" style="float:left"><label class="control-label login-label" >'+item.question.name+'</label></div>');
    				   if(item.answer == "Y")
        				  $('#snq').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>Yes</b></td></tr>');
    				   if(item.answer == "D")
         				  $('#snq').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>Don'+"'"+'t Know</b></td></tr>');
    				   if(item.answer == "N")
        				  $('#snq').append('<tr class="info" width="100%"><td width="60%">'+item.question.name+'</td><td width="40%">&nbsp;&nbsp;<b>No</b></td></tr>');	  
 
    			  });
    			 // $('#snq').append('</table>');
    		  });
              
    		  $( "#entityClassificationStatusNFFE" ).change(function() {
    			  var ecsffi = $('[name="entityClassificationStatusNFFE"]').val();
    			  if(ecsffi == "Rejected"){
    				  $('#checkernsid').empty();
    				  $('#checkernsid').append('<textarea rows="4" cols="50" placeholder="more info..." id="moreInfor"></textarea><br/><input type="submit"  id="signIneccs" value="Submit" class="button"/>');
    			    }
    	       		if(ecsffi == "Missing_Info"){
    	       		    $('#checkernsid').empty();
    	       			$('#checkernsid').append('<input type="checkbox" name="missinfo" value=""><b>Missing Information</b><br/><input type="checkbox" name="missdoc" value=""><b>Missing Document </b><br/><textarea rows="4" cols="50" placeholder="more info..." id="moreInfom"></textarea><br/><input type="submit"  id="signIneccs" value="Submit" class="button"/>');
    	       		} 
    	       		if(ecsffi == "Approved"){
    	       		  $('#checkernsid').empty();
    				  $('#checkernsid').append('<input type="submit"  id="signIneccs" value="Submit" class="button"/>');
    				 
	      	       	            }
	      	       	        });   
		   
    	       	    	$("#eccsFormNFFE").submit(function() {
    			  var ecsffi = $('[name="entityClassificationStatusNFFE"]').val();
    			  var stext = "";
    			  if(ecsffi == "Approved"){
    	                stext = "Checker Approved-Resolved";	
    	                var custID = $('[name="custID"]').val();
    	                var y={id:custID,moreInfo:"",isInfoMissing:"",isDocMissing:"",status:stext};
    	           		$.ajax({
    	       	    		headers: { 
    	       	    		        'Accept': 'application/json',
    	       	    		        'Content-Type': 'application/json; charset=utf-8' 
    	       	    		},
    	       	            type: "POST",
    	       	            url: "saveCheckerFinalStatus",
    	       	            contentType: "application/json; charset=utf-8",
    	       	            data: JSON.stringify(y),
    	       	            async: false,    //Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation
    	       	            cache: false,    //This will force requested pages not to be cached by the browser          
    	       	            processData:false,
    	       	            success: function(resposeJsonObject){ 
    	       	            	$("#eccsFormNFFE").attr("action", "success-login");
    	       	            }
    	       	        }); 
    	       	  }
    			  
    			  if(ecsffi == "Rejected"){
  	                stext = "Checker Rejected-Resolved";	
  	                var custID = $('[name="custID"]').val();
  	                var moreInforV = $('#moreInfor').val();
  	                var y={id:custID,moreInfo:moreInforV,isInfoMissing:"",isDocMissing:"",status:stext};
  	           		$.ajax({
  	       	    		headers: { 
  	       	    		        'Accept': 'application/json',
  	       	    		        'Content-Type': 'application/json; charset=utf-8' 
  	       	    		},
  	       	            type: "POST",
  	       	            url: "saveCheckerFinalStatus",
  	       	            contentType: "application/json; charset=utf-8",
  	       	            data: JSON.stringify(y),
  	       	            async: false,    //Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation
  	       	            cache: false,    //This will force requested pages not to be cached by the browser          
  	       	            processData:false,
  	       	            success: function(resposeJsonObject){ 
  	       	            	$("#eccsFormNFFE").attr("action", "success-login");
  	       	            }
  	       	        }); 
  	       	  }
    			  
    			  if(ecsffi == "Missing_Info"){
  	                stext = "Maker-Data Collection Reinitiated-Pending";	
  	                var custID = $('[name="custID"]').val();
  	                var missinfoV = $('[name="missinfo"]').is(':checked');
  	                var missdocV = $('[name="missdoc"]').is(':checked');
  	                var moreInfomV = $('#moreInfom').val();
  	                var y={id:custID,moreInfo:moreInfomV,isInfoMissing:missinfoV,isDocMissing:missdocV,status:stext};
  	           		$.ajax({
  	       	    		headers: { 
  	       	    		        'Accept': 'application/json',
  	       	    		        'Content-Type': 'application/json; charset=utf-8' 
  	       	    		},
  	       	            type: "POST",
  	       	            url: "saveCheckerFinalStatus",
  	       	            contentType: "application/json; charset=utf-8",
  	       	            data: JSON.stringify(y),
  	       	            async: false,    //Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation
  	       	            cache: false,    //This will force requested pages not to be cached by the browser          
  	       	            processData:false,
  	       	            success: function(resposeJsonObject){ 
  	       	            	$("#eccsFormNFFE").attr("action", "success-login");
  	       	            }
  	       	        }); 
  	       	     }
    		  });    		  
    	  /*  $("#eccsFormNFFE").submit(function() {
       		    var ecsffi = $('[name="entityClassificationStatusNFFE"]').val();
       		 var stext = "";
       	     if(ecsffi == "Rejected"){
       	    	stext = "Checker Rejected- Resolved";
       		}
       		if(ecsffi == "Missing_Info"){
       			stext = "Maker - data collection reinitated - pending";
       		} 
       		if(ecsffi == "Approved"){
                stext = "Checker Approved- Resolved";	 
       		
       	
       		}
       		var custID = $('[name="custID"]').val();
       		y={id:custID,status:stext};
       		$.ajax({
   	    		headers: { 
   	    		        'Accept': 'application/json',
   	    		        'Content-Type': 'application/json; charset=utf-8' 
   	    		},
   	            type: "POST",
   	            url: "saveSpecificNFFEAnswers",
   	            contentType: "application/json; charset=utf-8",
   	            data: JSON.stringify(y),
   	            async: false,    //Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation
   	            cache: false,    //This will force requested pages not to be cached by the browser          
   	            processData:false,
   	            success: function(resposeJsonObject){ 
   	            	$("#eccsFormNFFE").attr("action", "success-login");
   	            }
   	        }); 
       		  
     		}); */
    	  
    	  
    	  
    	 });
    </script>
</head>
    <body>
<div style=" height:400px;overflow:scroll;overflow-x:hidden;">
      
        
<!-- <h3>Initial Set of NFEE Questions</h3>
<div>

<div style="float:left;font-size:20px"><span class='label label-info'>NFEE Eligibility Status : </span></div><div style="float:left;font-size:20px" id="nffeStatus"> </div>

<br/><br/>
<div id="nffeFormd"></div>
<table class="table table-hover" id="nffeFormd"></table>
</div> -->
<%-- <h3  id="sQ">Specific NFFE Questions</h3>
<div id="sNQ1">
<div id="ncs1" style="float:left;font-size:20px"><span class='label label-info'>NFFE Classification Status: </span></div>
<div id="ncsSpe" style="float:left;font-size:20px"></div>
<br/>
<br/>
<br/>
<div class="control-group">
				  <div class="controls">
			        <!-- <div  id="snq"></div> -->
			        <table class="table table-hover" id="snq"></table>
			        <div  id="eccsFormNFFEChecker">
			        <form id="eccsFormNFFE">
			         <input type="hidden" name="custID" value="${sid}" id="custQuesId"/>  
			        
			        <br/>
			        <div class="control-group"><div class="controls">
			        <div id="formSubmitn">Status : <select name="entityClassificationStatusNFFE" id="entityClassificationStatusNFFE">
					  <option value="Approved">Approved</option>
					  <option value="Rejected">Rejected</option>
					  <option value="Missing_Info">Missing Information</option>
					</select> 
			       <div id="checkernsid"> <input type="submit"  id="signIneccs" value="Submit" class="button"/></div></div></div></div>
			        </form>
			        </div> 
				  </div>
				</div>
</div> --%>


<div style="width:97%;float:left;">
<div id="accordion1" align="center">
<h3>Client Information</h3>
<div>
 <table class="table table-hover" id="clientInfo">
 </table>
</div>
<h3>Additional Fields</h3>
<div id="additionalFields" style="overflow-y: scroll; height:250px;">
                    <table class="table table-hover">
                      <tr class="info"><td><a href="#" id="businessNatureDialogLink" title="Click here to open Business Nature Dialog"> Business Nature</a></td></tr>
                      <tr class="info"><td><a href="#" id="eagMemberStatusLink" title="Click here to open EAG Member Status Dialog"> EAG Member Status</a></td></tr>
                      <tr class="info"><td><a href="#" id="eagPassiveIncomeLink" title="Click here to open EAG Passive Income Dialog"> EAG Passive Income</a></td></tr>
                      <tr class="info"><td><a href="#" id="exchangeMarketLink" title="Click here to open Exchange Market Dialog"> Exchange Market</a></td></tr>
                      <tr class="info"><td><a href="#" id="locationsLink" title="Click here to open Locations Dialog"> Locations</a></td></tr>
                      <tr class="info"><td><a href="#" id="regulatorsLink" title="Click here to open Regulators Dialog"> Regulators</a></td></tr>
                    </table>
                
                <div id="businessNatureDialog">
	                <table id="myTable" class="table table-hover" align="center">
						
							<tr>
							    <th>Id</th>
								<th>Business Activity</th>
								<th>Entity Name</th>
								<th>Industry Class</th>
							</tr>
						
						<tbody id="myBodyBN">
	
						</tbody>
					</table>
                </div>
                <div id="eagMemberStatusDialog">
	                <table id="myTableMS" class="table table-hover" align="center">
							
								<tr>
								    <th>Id</th>
									<th>Member Name</th>
								    <th>Status</th>
								</tr>
							
							<tbody id="myBodyMS">
		
							</tbody>
					</table>
                </div>
                <div id="eagPassiveIncomeDialog">
	                <table id="myTablePI" class="table table-hover" align="center">
								
									<tr>
									    <th>Id</th>
										<th>Source Name</th>
							            <th>Percentage</th>
									</tr>
								
								<tbody id="myBodyPI">
			
								</tbody>
					</table>
                </div>
                 <div id="exchangeMarketDialog">
	                <table id="myTableEM" class="table table-hover" align="center">
								
									<tr>
									    <th>Id</th>
										<th>Market Name</th>
							            <th>Ticket</th>
									</tr>
								
								<tbody id="myBodyEM">
			
								</tbody>
					</table>
                </div>
                <div id="locationsDialog">
	                <table id="myTableL" class="table table-hover" align="center">
								
									<tr>
									    <th>Id</th>
										<th>City</th>
							            <th>Country</th>
									</tr>
								
								<tbody id="myBodyL">
			
								</tbody>
					</table>
                </div>
                
                 <div id="regulatorsDialog">
	                <table id="myTableR" class="table table-hover" align="center">
								
									<tr>
									    <th>Id</th>
										<th>Regulator Name</th>
							            <th>Country</th>
									</tr>
								
								<tbody id="myBodyR">
			
								</tbody>
					</table>
                </div>
</div>
<!-- <h3>Document Information</h3>
<div>
     <div id="docInfo"></div>
	 <br/><br/>
	 <table class="table table-hover" id="docInfoTbl"></table>
</div> -->
<%-- <h3>Missing Information</h3>
<div id="missingInfo">
<form action="" id="missingInfoForm">
<input type="checkbox" name="missingInfo" id="missingInfo" value="info"/>Missing Information <br/>
<input type="checkbox" name="missingDoc" id="doc" value="Car"/>Missing Documents<br/><br/>
<textarea id="moreInfo" rows="4" cols="50"> </textarea><br/>
<input type="submit" value="Submit"/>
</form>
</div> --%>
</div>
</div>

<div style="width:2%;float:left;">
	<div style="float:right">
		<form action="success-login">
		    <button type='submit' class='btn btn-default' title='Close Current Tab'><span class='glyphicon glyphicon-remove'></span></button>
		</form>
	</div>
</div>
</div>
        <!--<button onclick="answerMe();">Answer Me</button>-->
    </body>
</html>